import Avatar from '@/views/Editors/Avatar';
import Bill from '@/views/Editors/Bill';
import Group from '@/views/Editors/Group';

const routes = [
   {
      path: '/avatar',
      key: 'avatar',
      component: <Avatar />,
      title: '更改头像',
      exact: true,
   },
   {
      path: '/bill/:id',
      key: 'bill-edit',
      component: <Bill />,
      exact: false,
   },
   {
      path: '/bill',
      key: 'bill-add',
      component: <Bill />,
      exact: false,
   },
   {
      path: '/group',
      key: 'group-add',
      title: '创建分组',
      component: <Group />,
      exact: false,
   },
   {
      path: '/group/:id',
      key: 'group-edit',
      title: '编辑分组',
      component: <Group />,
      exact: false,
   },
];

export default routes;
